<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/common/common_tag.jsp"%>
<%@include file="/common/common_js.jsp"%>
<script type="text/javascript">
$(function(){
	initEasyUIStyle();
})
function btn_save (){
	var flag = $('#teacherForm').form('validate');
	if(flag){
		$.ajax({
   			url: "teacher_addTeacher.do",
   			type: "post",
   			data: $("#teacherForm").serialize(),
   			datatype:"json",
   			success: function(data){
		    	if(data.MSG=="success"){
		    		$.messager.alert('提示','数据已保存!','info');
		    		document.getElementById("teacherForm").reset();
   			    }else{
   			    	$.messager.alert('提示','数据保存失败!','error');
	   			}
		  	}
		});
   	}
}
function btn_rest(){
	document.getElementById("teacherForm").reset()
}
</script>
<body>
	<form id="teacherForm" method="post">
	<div class="pageFormContent" >	
		<fieldset style="width: 90%">
			<legend>基础信息</legend>
			<div style="float: left;width: 750">
			<dl>
				<dt>姓名：</dt>
				<dd> <s:property value="teacher.name" /></dd>
			</dl>
			<dl>
				<dt>性别：</dt>
			
				<dd style="width: 150">
						<s:property value="teacher.sex"/>
				</dd>
			</dl>
			<dl>
				<dt>出生日期：</dt>
				<dd>
					<s:date name="teacher.birthday" format="yyyy-MM-dd"/>
				</dd>
			</dl>
			
			<dl>
				<dt>工作年限：</dt>
				<dd>
					<s:property value="teacher.workYear"/>
				</dd>
			</dl>
			
			<dl>
				<dt>证件类型：</dt>
				<dd>
					<s:property value="teacher.credentialsType"/>
				</dd>
			</dl>
			
			<dl>
				<dt>证件号：</dt>
				<dd>
					<s:property value="teacher.credentialsNO"/>
				</dd>
			</dl>
			
			<dl>
				<dt>居住地：</dt>
				<dd>
					<s:property value="teacher.nowAddress"/>
				</dd>
			</dl>
			<dl>
				<dt>Email：</dt>
				<dd>
					<s:property value="teacher.email"/>
				</dd>
			</dl>
			<dl>
				<dt>手机号码：</dt>
				<dd>
					<s:property value="teacher.cellPhone"/>
				</dd>
			</dl>
			<dl>
				<dt>家庭电话：</dt>
				<dd>
					<s:property value="teacher.familyPhone"/>
				</dd>
			</dl>
			<dl>
				<dt>职位：</dt>
				<dd>
				<s:property value="teacher.office"/>
				</dd>
			</dl>
			<dl>
				<dt>身高(cm)：</dt>
				<dd>
					<s:property value="teacher.height"/>
				</dd>
			</dl>
			<dl>
				<dt>婚姻状况：</dt>
				<dd>
				<s:property value="teacher.marriage"/>
				</dd>
			</dl>
			<dl>
				<dt>民族：</dt>
				<dd>
				<s:property value="teacher.nation"/>
				</dd>
			</dl>
			</div>
			<div style="background-color:#CCCCCC;width: 150;height: 150;float: left;border: 1px solid #000000;">
			照片
			</div>
		</fieldset>
		
		<fieldset style="width: 90%">
			<legend>教育情况</legend>
			<dl>
				<dt>学历：</dt>
				<dd>
				<s:property value="teacher.degress"/>
				</dd>
			</dl>
			<dl>
				<dt>专业：</dt>
				<dd>
				<s:property value="teacher.major"/>
				</dd>
			</dl>
			<dl>
				<dt>毕业学校：</dt>
				<dd>
					<s:property value="teacher.school"/>
				</dd>
			</dl>
			
			<dl>
				<dt>资格证书：</dt>
				<dd><s:property value="teacher.certificate"/></dd>
			</dl>
			
			<dl>
				<dt>外语能力：</dt>
				<dd><s:property value="teacher.language"/></dd>
			</dl>
			
			<dl>
				<dt>特长：</dt>
				<dd><s:property value="teacher.strongSuit"/></dd>
			</dl>
			<dl>
				<dt>兴趣爱好：</dt>
				<dd><s:property value="teacher.interest"/></dd>
			</dl>
		</fieldset>
		</div>
	</form>
</body>